Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform manager role and ec2 test platform support #4

Merged
merged 10 commits into from
Apr 12, 2024
Merged

Conversation

syndr
Copy link
Collaborator

@syndr syndr commented Apr 12, 2024

Refactor molecule.docker_platform role to handle specifically docker testing containers and not molecule inventory files

Molecule inventory files are now managed by the new molecule.platform role. References to docker_platform in molecule create.yml or destroy.yml files should be updated to use this role in order to work with this version

Add molecule.ec2_platform role, which allows creation and use of ephemeral ec2 instances for test environments.

Update molecule.init role to support deployment of both docker and ec2 platforms. Note that only one platform type is supported per scenario! Also note that there are differences between the Molecule configuration for each platform, so this init role should be used to deploy the appropriate templates!

syndr and others added 10 commits March 11, 2024 21:01
* Add playbook support

* Update documentation

* Dynamically load collection name where possible (init)
Add support for specifying Ansible hostvars on a platform.

Fix cgroup namespace for docker platform.

Add more recommended configuration to prepare.yml template.

Add more documentation.
Fix the `docker_platform` role so that it works correctly when
more than one platform is specified in molecule.yml.

Move non-provider-specific platform configuration to a `platform` role. This is a breaking change for this version, as functions of `docker_platform` are now provided by platform.

Replace any references to `docker_platform` in playbooks using this collection with `platform`, options stay the same.
Refactor molecule.docker_platform role to handle specifically docker testing containers and not molecule inventory files

Molecule inventory files are now managed by the new molecule.platform role. References to docker_platform in molecule create.yml or destroy.yml files should be updated to use this role in order to work with this version

Add molecule.ec2_platform role, which allows creation and use of ephemeral ec2 instances for test environments.

Update molecule.init role to support deployment of both docker and ec2 platforms. Note that only one platform type is supported per scenario! Also note that there are differences between the Molecule configuration for each platform, so this init role should be used to deploy the appropriate templates!
…le (#9)

Fixes issue primarily affecting CI, where the `init` role fails if it cannot read the collection manifest.
@syndr syndr added the enhancement New feature or request label Apr 12, 2024
@syndr syndr self-assigned this Apr 12, 2024
@syndr syndr requested a review from a team April 12, 2024 20:22
@syndr syndr merged commit ee360bc into main Apr 12, 2024
1 check passed
@syndr syndr deleted the add-ec2-platform branch April 12, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants